/*
* Copyright 2005-2008 Pulse Technologies. Tutti i diritti riservati.
*/
package org.obsidianrad.server.services.user;

import java.io.Serializable;
import java.util.Map;

/**
 * Utente della piattaforma Obsidian.
 * 
 * @author Eligio Colutta
 * @version $Rev: 4 $
 * @lastautorcommit $Author: eliosh $
 * @lastdatecommit $Date: 2009-10-31 12:37:28 +0100(sab, 31 ott 2009) $
 */
public class ObsidianUser implements Serializable {

	private static final long serialVersionUID = 5911626634960754528L;

	private String name;
	
	/**
	 * Indica i ruoli per il contesto attivo.
	 */
	private String[] roles;
	
	/**
	 * Indica la chiave del contesto attuale
	 */
	private String activeContext;
	
	/**
	 * Indica l'array di chiavi dei contesti utilizzabili dall'utente
	 */
	private String[] contextList;
	
	/**
	 * Indica le preferenze del singolo utente
	 */
	private Map<String, Object> preferences;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String[] getRoles() {
		return roles;
	}

	public void setRoles(String[] roles) {
		this.roles = roles;
	}

	public String getActiveContext() {
		return activeContext;
	}

	public void setActiveContext(String activeContext) {
		this.activeContext = activeContext;
	}

	/**
	 * @return the contextList
	 */
	public String[] getContextList() {
		return contextList;
	}

	/**
	 * @param contextList the contextList to set
	 */
	public void setContextList(String[] contextList) {
		this.contextList = contextList;
	}

	/**
	 * @return the preferences
	 */
	public Map<String, Object> getPreferences() {
		return preferences;
	}

	/**
	 * @param preferences the preferences to set
	 */
	public void setPreferences(Map<String, Object> preferences) {
		this.preferences = preferences;
	}

	
}
